package cn.example.demo.modules.house.entity;

import cn.example.demo.common.db.pojo.entity.BaseEntity;
import cn.example.demo.common.tools.obj.reflect.FieldAlias;
import cn.example.demo.common.tools.obj.reflect.Immutable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 描述：【租房订单】实体类
 */
@FieldNameConstants
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HousingOrder extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Immutable
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @FieldAlias("ID")
    private String id;

    @FieldAlias("房源ID")
    private String houseId;

    @FieldAlias("房东")
    private Integer houseOwner;

    @FieldAlias("餐饮ID")
    private String mealId;

    @FieldAlias("是否需要餐饮")
    private String isNeedMeal;

    @FieldAlias("预定入住日期")
    private Date orderStartTime;

    @FieldAlias("预定退房日期")
    private Date orderEndTime;

    @FieldAlias("入住天数")
    private Integer housingDay;

    @FieldAlias("餐饮费用")
    private BigDecimal mealCost;

    @FieldAlias("房价")
    private BigDecimal houseCost;

    @FieldAlias("总费用")
    private BigDecimal totalCost;

    @FieldAlias("房客评分")
    private Integer starMark;

    @FieldAlias("房客评价")
    private String appraise;

    @FieldAlias("房东回复")
    private String reply;

    @FieldAlias("订单状态")
    private Integer orderStatus;

    @FieldAlias("预付定金")
    private BigDecimal prePay;

    @FieldAlias("补交费用")
    private BigDecimal appendPay;

    @FieldAlias("返还费用")
    private BigDecimal returnCost;

    @FieldAlias("预付定金日期")
    private Date prePayDate;

    @FieldAlias("物品损坏")
    private String thingBreak;

    @FieldAlias("物品遗失")
    private String thingLost;

    @FieldAlias("床品更换")
    private String beddingChange;

    @FieldAlias("卫生打扫")
    private String hygienicClean;

    @FieldAlias("退房时间")
    private Date leaveHouseDate;

    @FieldAlias("头像")
    @TableField(exist = false)
    private String avatar;
}
